<!DOCTYPE html SYSTEM "http://www.thymeleaf.org/dtd/xhtml1-strict-thymeleaf-4.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:th="http://www.thymeleaf.org">

<head th:include="common/common :: jscss">
    <title>关联产品分类</title>
</head>
<body>

<div class="layui-fluid">

    <blockquote class="layui-crumb">
        <a lay-href="/brand/ratio/list.action">品牌系数</a> >
        <zmn th:text="${brandName}">品牌名字</zmn> >
        <zmn th:text="${priceType == 1 ? '销售价': '内部价'}">价格类型</zmn> >
        <zmn th:if="${bizType == 4}" th:text="计价器3.0分类系数">计价器3.0分类系数</zmn>
        <zmn th:if="${bizType == 3}" th:text="B分类系数">分类系数</zmn>
        <zmn th:if="${bizType == 2}" th:text="F分类系数">分类系数</zmn>
        <zmn th:if="${bizType == 1}" th:text="C分类系数">分类系数</zmn>
    </blockquote>

    <div class="layui-card">

        <div class="layui-card-body">

            <div class="layui-card-header" style="margin-top:10px;"><b>【重要提示】 品牌系数取系数的顺序为：产品二级分类的系数->产品一级分类的系数->默认的系数；取到系数就不再往下取。</b></div>

            <div class="layui-tab layui-tab-brief" lay-filter="servCategoryTab">
                <ul class="layui-tab-title">
                    <th:block th:each="servCategory: ${servCategoryList}">
                        <li th:class="${servCategory.categId == servCategId ? 'layui-this':''}">
                            <a th:if="${bizType == 4}" th:text="${servCategory.name}" th:href="|/brand/ratio/categoryMeterRatio.action?brandId=${brandId}&priceType=${priceType}&servCategId=${servCategory.categId}&brandName=${brandName}|"></a>
                            <a th:if="${bizType == 3}" th:text="${servCategory.name}" th:href="|/brand/ratio/categoryProjectRatio.action?brandId=${brandId}&priceType=${priceType}&servCategId=${servCategory.categId}&brandName=${brandName}|"></a>
                            <a th:if="${bizType == 2}" th:text="${servCategory.name}" th:href="|/brand/ratio/categoryInRatio.action?brandId=${brandId}&priceType=${priceType}&servCategId=${servCategory.categId}&brandName=${brandName}|"></a>
                            <a th:if="${bizType == 1}" th:text="${servCategory.name}" th:href="|/brand/ratio/categoryOutRatio.action?brandId=${brandId}&priceType=${priceType}&servCategId=${servCategory.categId}&brandName=${brandName}|"></a>
                        </li>
                    </th:block>
                </ul>
            </div>

            <div class="zmn-auto-table">
                <div th:replace="brand/ratio/_categoryratiotable::table"/>
            </div>
        </div>
    </div>

</div>

<script type="text/javascript" th:inline="javascript">
    var json = {
        servCategId: [[${servCategId}]],
        brandId: [[${brandId}]],
        priceType: [[${priceType}]],
        bizType: [[${bizType}]],
        size: [[${categOnes.size()}]]
    };
    layui.config({
        base: "/static/lay/"
    }).extend({
        index: "lib/index",
        brand_ratio_classify: "brand/ratio/zmn.plat.brandratio.classify",
    }).use(['index', 'brand_ratio_classify']);

</script>
</body>
</html>

<script type="text/html" id="toolbar_help">
    <div class="layui-inline" title="帮助" lay-event="CUSTOM_HELP"><i class="layui-icon layui-icon-help"></i></div>
</script>
<script type="text/html" id="help_content">
    <div>
        <label style="font-weight: bold">说明</label> <br/>
        <p>系数展示为：待生效系数/已生效系数</p>
    </div>
</script>